﻿namespace Zhp.Model.Sys
{
    /// <summary>
    /// 
    /// </summary>
    public class LoginParam
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 唯一ID，这里使用雪花ID
        /// </summary>
        public string Uuid { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class LoginRet
    {
        /// <summary>
        /// 
        /// </summary>
        public LoginUserVM User { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AccessToken { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string RefreshToken { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class LoginUserVM
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 头像地址
        /// </summary>
        public string AvatarUrl { get; set; }
    }

    public class TokenRet
    {
        public string AccessToken { get; set; }
        public string RefreshToken { get; set; }
    }
}
